package com.example.demo.Service.imp;

import com.example.demo.Controller.vo.xiangqing;
import com.example.demo.Service.TOrderService;
import com.example.demo.entity.TOrder;
import com.example.demo.mappers.TOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TOrderServiceimp implements TOrderService {
    private TOrderMapper TO;
@Autowired
    public void setTO(TOrderMapper TO) {
        this.TO = TO;
    }

    @Override
    public Boolean zengjia(TOrder tOrder) {
        return TO.zengjia(tOrder);
    }

    @Override
    public List<TOrder> chaxundingdan(Integer userid) {
        return TO.chaxundingdan(userid);
    }

    @Override
    public void xiugai(String msg) {
        TO.xiugai(msg);
    }

    @Override
    public void zhuangtai(String msg) {
        System.out.println(msg);
        TO.zhuangtai(msg);
    }

    @Override
    public List<xiangqing> dingdanxiangqing(String ordernum) {
        return TO.ordernum(ordernum);
    }


}
